package com.cyy.common.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cyy.common.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author 曹云友
 * @since 2024-03-29
 */
@Getter
@Setter
@TableName("role")
public class Role extends BaseEntity {


    /**
     * 角色编码
     */
    private String code;

    /**
     * 角色名称
     */
    private String name;

    /**
     * 角色描述
     */
    private String remark;

    /**
     * 排序
     */
    private Integer sort;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建人", example = "创建人")
    private Integer createBy;


    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新人", example = "更新人")
    private Integer updateBy;
}
